<?php
$this->breadcrumbs=array(
	'Blogs'=>array('index'),
	$model->title,
);

$this->menu=array(
	array(Yii::t('yii','List Blog'), array('index')),
	array(Yii::t('yii','Create Blog'), array('create'),'visible'=>Yii::app()->user->hasAuth(Group::USER)),
	array(Yii::t('yii','Update Blog'), array('update', 'id'=>$model->id),'visible'=>Yii::app()->user->hasAuth(Group::USER)),
	array(Yii::t('yii','Manage Blog'), array('admin'),'visible'=>Yii::app()->user->hasAuth(Group::USER)),
);
?>

<h1><?php echo Yii::t('yii','View post'); ?></h1>

<div class="post">
	<div class="title">
		<h1><?php echo CHtml::link(CHtml::encode($model->title), array('view', 'id'=>$model->id)); ?></h1>
	</div>
	<div class="postcontent">
		<?php
			
			 if($list){
        echo mb_substr(strip_tags($model->content),0,600,'UTF-8').".......";
    }else{
        $this->beginWidget('CMarkdown', array('purifyOutput'=>true));
			echo $model->content;
			$this->endWidget();
    }
    
		?>
	</div>
	<div class="nav">
		<br/>
	</div>
</div>

<?php $this->widget('textedit.components.TextEditor', array('id'=>'Blogsview')); ?>
